home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_176_132 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-26  |  1.0 KB  |  42 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.life > 6)
  3.    {
  4.       if(this._y <= 561)
  5.       {
  6.          this._y += 5;
  7.       }
  8.       else
  9.       {
  10.          _global.mojo -= 2;
  11.          this._x = random(28) * 10 + 10;
  12.          this._y = - random(500);
  13.       }
  14.    }
  15.    if(this.hitTest(_parent.drag) and _global.die == false)
  16.    {
  17.       _parent.drag.gotoAndPlay("die");
  18.       _parent.shak.gotoAndPlay(1);
  19.       this._x = random(28) * 10 + 10;
  20.       this._y = - random(500) - 1500;
  21.       _parent.score -= 300;
  22.    }
  23.    if(this.hitTest(_parent.shot1))
  24.    {
  25.       _parent.shot1.gotoAndStop(1);
  26.       _global.kills += 1;
  27.       _parent.shak.gotoAndPlay(1);
  28.       _parent.attachMovie("t3_fader","fader3",100);
  29.       _parent.fader3._x = this._x;
  30.       _parent.fader3._y = this._y;
  31.       _parent.fader3._xscale = 75;
  32.       _parent.fader3._yscale = 75;
  33.       _parent.score += 300;
  34.       this._x = random(28) * 10 + 10;
  35.       this._y = - random(500) - 1500;
  36.    }
  37.    if(_global.bosstime > 0)
  38.    {
  39.       this.gotoAndStop("exit");
  40.    }
  41. }
  42.